package cn.com.ldns.opentetris.common;
/**
 * 图形类型
 * @author xiyt
 */
public enum BoxType {
	SHAPE_I,
	SHAPE_L,
	SHAPE_J,
	SHAPE_O,
	SHAPE_S,
	SHAPE_Z,
	SHAPE_T;

	public static BoxType valueOf(int ordinal) {
		if (ordinal < 0 || ordinal >= values().length) {
            throw new IndexOutOfBoundsException("Invalid ordinal");
        }
		return BoxType.values()[ordinal];
	}
}
